package pers.zc.activiti.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 一个人认领任务，当前节点确认
 * one persion choose ,the act task shore
 * gwx
 * 2019年1月8日 16:11:27
 */
public class MyOnePassListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {

        List<String> assigneeList = new ArrayList<>();
        //TODO LIST ADD USER ------ How to Choose Personnel
        assigneeList.add("张1");
        assigneeList.add("张2");
        assigneeList.add("张3");
        delegateTask.addCandidateUsers(assigneeList);
    }
}
